import React, { Suspense } from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter, HashRouter } from 'react-router-dom'
import App from './App'

ReactDOM.render(
  <BrowserRouter>
    {/* Suspense的作用:就是在加载组件的过程中,展示一个正在加载的内容,提高用户体验 */}
    {/* <Suspense
      fallback={<div style={{ color: 'red', fontSize: 40 }}>loading...</div>}
    > */}
    <App />
    {/* </Suspense> */}
  </BrowserRouter>,
  document.getElementById('root')
)
